import React, { Component } from 'react'
import './detailpjitem.less'
export default class Detailpjitem extends Component {
    render() {
        return (
            <div className='detailpjitem'>
                <p>
                    <i className='iconfont icon-wode'>
                        {this.props.data.username}
                    </i>
                </p>
                <p>
                    {[1,1,1,1,1].map((item,index)=>(
                        <i 
                            className={
                                index<this.props.data.star
                                ?
                                'iconfont icon-xingxing hong'
                                :
                                'iconfont icon-xingxing hui' 
                            }
                            
                            key={index}
                        ></i>
                    ))}
                </p>
                <p>
                    {this.props.data.comment}
                </p>
            </div>
        )
    }
}
